﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FiFaChamps.Repository;
namespace FiFaChamps.logic
{
   public class Controller
   {
       #region
       /// <summary>
       /// GROUPS
       /// select top players
       /// insert a player
       /// update groups
       /// create a group
       /// delete a group
       /// </summary>
       /// 
       //player
       PlayerRepo pr = new PlayerRepo();
      public string createPlayer(string name, string surname, string email, string phone, string nickname,bool? onlineplayer, int? firstTeam, int? secondTeam, string playerPicture)
       {
          
            Player player = new Player(name,surname,email,phone,nickname,onlineplayer,firstTeam,secondTeam,playerPicture);

            return pr.insertPlayer(player);
       }

      public List<Player> allPlayers()
      {
          return pr.getAllPlayers();
      }

       #endregion
       
       #region 
       /// <summary>
       /// FIXTURES
       /// get group
       /// fixture for all groups
       /// fixture for a group
       /// select rules
       /// update fixtures
       /// </summary>
        #endregion

       #region
       /// <summary>
       /// RULES
       /// set rules
       /// return rules
       /// 
       /// </summary>
       #endregion

       #region
       /// <summary>
       /// create leaugue
       /// set rules
       /// return rules
       ///</summary>
       #endregion

       #region
       /// <summary>
       /// create a player
       /// delete a player
       /// set rules
       /// return rules
       /// 
       /// </summary>
       #endregion
       #region 
       /// <summary>
       /// Create Tournament
       /// update tournament 
       /// delete tournament
       /// select tournament
       /// </summary>
       #endregion
    }
}
